shortcutcontroller: Add GtkShortcutScope
authorBenjamin Otte <otte@redhat.com>
Mon, 13 Aug 2018 14:02:27 +0000 (16:02 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 19 Mar 2020 03:00:50 +0000 (23:00 -0400)
commitd4127fe0d4a8c373f3fc3fab38c04a12d97c16ad
treebf12dd2e238cbf7fc52fb9bc89c25db090282365
parent22801f0d4dec20c65d0017fb44aad25c444e29b1
shortcutcontroller: Add GtkShortcutScope

Allow setting the scope for a controller. The scope determines at what
point in event propagation the shortcuts will be activated.

Local scope is the usual activation, global scope means that the root
widget activates the shortcuts - ie they are activated at the very
start of event propagation (for global capture events) or the very end
(for global bubble events).
Managed scope so far is unimplemented.

This is supposed to be used to replace accelerators and mnemonics.
docs/reference/gtk/gtk4-sections.txt
gtk/gtkenums.h
gtk/gtkshortcutcontroller.c
gtk/gtkshortcutcontroller.h
gtk/gtkshortcutcontrollerprivate.h
gtk/gtkwidget.c